package com.desksoft.ecommerce.entity.mall.dto;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.desksoft.ecommerce.base.Entity;

public class EventdefineExample implements Entity{
    /***************************************
	 * <pre>
	 * 版权所有：杭州迪科软件 保留所有权利
	 * 创建日期:  2012-12-5 下午04:32:12
	 * 创建作者：jh
	 * 文件名称：EventdefineExample.java
	 * 版本：1.0
	 * 功能：
	 * 最后修改时间：
	 * 修改记录：
	 * </pre>
	 *****************************************/
	private static final long serialVersionUID = 8398026797788235609L;

	protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public EventdefineExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andEventdefineidIsNull() {
            addCriterion("eventDefineID is null");
            return (Criteria) this;
        }

        public Criteria andEventdefineidIsNotNull() {
            addCriterion("eventDefineID is not null");
            return (Criteria) this;
        }

        public Criteria andEventdefineidEqualTo(String value) {
            addCriterion("eventDefineID =", value, "eventdefineid");
            return (Criteria) this;
        }

        public Criteria andEventdefineidNotEqualTo(String value) {
            addCriterion("eventDefineID <>", value, "eventdefineid");
            return (Criteria) this;
        }

        public Criteria andEventdefineidGreaterThan(String value) {
            addCriterion("eventDefineID >", value, "eventdefineid");
            return (Criteria) this;
        }

        public Criteria andEventdefineidGreaterThanOrEqualTo(String value) {
            addCriterion("eventDefineID >=", value, "eventdefineid");
            return (Criteria) this;
        }

        public Criteria andEventdefineidLessThan(String value) {
            addCriterion("eventDefineID <", value, "eventdefineid");
            return (Criteria) this;
        }

        public Criteria andEventdefineidLessThanOrEqualTo(String value) {
            addCriterion("eventDefineID <=", value, "eventdefineid");
            return (Criteria) this;
        }

        public Criteria andEventdefineidLike(String value) {
            addCriterion("eventDefineID like", value, "eventdefineid");
            return (Criteria) this;
        }

        public Criteria andEventdefineidNotLike(String value) {
            addCriterion("eventDefineID not like", value, "eventdefineid");
            return (Criteria) this;
        }

        public Criteria andEventdefineidIn(List<String> values) {
            addCriterion("eventDefineID in", values, "eventdefineid");
            return (Criteria) this;
        }

        public Criteria andEventdefineidNotIn(List<String> values) {
            addCriterion("eventDefineID not in", values, "eventdefineid");
            return (Criteria) this;
        }

        public Criteria andEventdefineidBetween(String value1, String value2) {
            addCriterion("eventDefineID between", value1, value2, "eventdefineid");
            return (Criteria) this;
        }

        public Criteria andEventdefineidNotBetween(String value1, String value2) {
            addCriterion("eventDefineID not between", value1, value2, "eventdefineid");
            return (Criteria) this;
        }

        public Criteria andEventkeyIsNull() {
            addCriterion("eventKey is null");
            return (Criteria) this;
        }

        public Criteria andEventkeyIsNotNull() {
            addCriterion("eventKey is not null");
            return (Criteria) this;
        }

        public Criteria andEventkeyEqualTo(String value) {
            addCriterion("eventKey =", value, "eventkey");
            return (Criteria) this;
        }

        public Criteria andEventkeyNotEqualTo(String value) {
            addCriterion("eventKey <>", value, "eventkey");
            return (Criteria) this;
        }

        public Criteria andEventkeyGreaterThan(String value) {
            addCriterion("eventKey >", value, "eventkey");
            return (Criteria) this;
        }

        public Criteria andEventkeyGreaterThanOrEqualTo(String value) {
            addCriterion("eventKey >=", value, "eventkey");
            return (Criteria) this;
        }

        public Criteria andEventkeyLessThan(String value) {
            addCriterion("eventKey <", value, "eventkey");
            return (Criteria) this;
        }

        public Criteria andEventkeyLessThanOrEqualTo(String value) {
            addCriterion("eventKey <=", value, "eventkey");
            return (Criteria) this;
        }

        public Criteria andEventkeyLike(String value) {
            addCriterion("eventKey like", value, "eventkey");
            return (Criteria) this;
        }

        public Criteria andEventkeyNotLike(String value) {
            addCriterion("eventKey not like", value, "eventkey");
            return (Criteria) this;
        }

        public Criteria andEventkeyIn(List<String> values) {
            addCriterion("eventKey in", values, "eventkey");
            return (Criteria) this;
        }

        public Criteria andEventkeyNotIn(List<String> values) {
            addCriterion("eventKey not in", values, "eventkey");
            return (Criteria) this;
        }

        public Criteria andEventkeyBetween(String value1, String value2) {
            addCriterion("eventKey between", value1, value2, "eventkey");
            return (Criteria) this;
        }

        public Criteria andEventkeyNotBetween(String value1, String value2) {
            addCriterion("eventKey not between", value1, value2, "eventkey");
            return (Criteria) this;
        }

        public Criteria andEventnameIsNull() {
            addCriterion("eventName is null");
            return (Criteria) this;
        }

        public Criteria andEventnameIsNotNull() {
            addCriterion("eventName is not null");
            return (Criteria) this;
        }

        public Criteria andEventnameEqualTo(String value) {
            addCriterion("eventName =", value, "eventname");
            return (Criteria) this;
        }

        public Criteria andEventnameNotEqualTo(String value) {
            addCriterion("eventName <>", value, "eventname");
            return (Criteria) this;
        }

        public Criteria andEventnameGreaterThan(String value) {
            addCriterion("eventName >", value, "eventname");
            return (Criteria) this;
        }

        public Criteria andEventnameGreaterThanOrEqualTo(String value) {
            addCriterion("eventName >=", value, "eventname");
            return (Criteria) this;
        }

        public Criteria andEventnameLessThan(String value) {
            addCriterion("eventName <", value, "eventname");
            return (Criteria) this;
        }

        public Criteria andEventnameLessThanOrEqualTo(String value) {
            addCriterion("eventName <=", value, "eventname");
            return (Criteria) this;
        }

        public Criteria andEventnameLike(String value) {
            addCriterion("eventName like", value, "eventname");
            return (Criteria) this;
        }

        public Criteria andEventnameNotLike(String value) {
            addCriterion("eventName not like", value, "eventname");
            return (Criteria) this;
        }

        public Criteria andEventnameIn(List<String> values) {
            addCriterion("eventName in", values, "eventname");
            return (Criteria) this;
        }

        public Criteria andEventnameNotIn(List<String> values) {
            addCriterion("eventName not in", values, "eventname");
            return (Criteria) this;
        }

        public Criteria andEventnameBetween(String value1, String value2) {
            addCriterion("eventName between", value1, value2, "eventname");
            return (Criteria) this;
        }

        public Criteria andEventnameNotBetween(String value1, String value2) {
            addCriterion("eventName not between", value1, value2, "eventname");
            return (Criteria) this;
        }

        public Criteria andParenteventidIsNull() {
            addCriterion("parentEventID is null");
            return (Criteria) this;
        }

        public Criteria andParenteventidIsNotNull() {
            addCriterion("parentEventID is not null");
            return (Criteria) this;
        }

        public Criteria andParenteventidEqualTo(String value) {
            addCriterion("parentEventID =", value, "parenteventid");
            return (Criteria) this;
        }

        public Criteria andParenteventidNotEqualTo(String value) {
            addCriterion("parentEventID <>", value, "parenteventid");
            return (Criteria) this;
        }

        public Criteria andParenteventidGreaterThan(String value) {
            addCriterion("parentEventID >", value, "parenteventid");
            return (Criteria) this;
        }

        public Criteria andParenteventidGreaterThanOrEqualTo(String value) {
            addCriterion("parentEventID >=", value, "parenteventid");
            return (Criteria) this;
        }

        public Criteria andParenteventidLessThan(String value) {
            addCriterion("parentEventID <", value, "parenteventid");
            return (Criteria) this;
        }

        public Criteria andParenteventidLessThanOrEqualTo(String value) {
            addCriterion("parentEventID <=", value, "parenteventid");
            return (Criteria) this;
        }

        public Criteria andParenteventidLike(String value) {
            addCriterion("parentEventID like", value, "parenteventid");
            return (Criteria) this;
        }

        public Criteria andParenteventidNotLike(String value) {
            addCriterion("parentEventID not like", value, "parenteventid");
            return (Criteria) this;
        }

        public Criteria andParenteventidIn(List<String> values) {
            addCriterion("parentEventID in", values, "parenteventid");
            return (Criteria) this;
        }

        public Criteria andParenteventidNotIn(List<String> values) {
            addCriterion("parentEventID not in", values, "parenteventid");
            return (Criteria) this;
        }

        public Criteria andParenteventidBetween(String value1, String value2) {
            addCriterion("parentEventID between", value1, value2, "parenteventid");
            return (Criteria) this;
        }

        public Criteria andParenteventidNotBetween(String value1, String value2) {
            addCriterion("parentEventID not between", value1, value2, "parenteventid");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Short value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Short value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Short value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Short value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Short value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Short value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Short> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Short> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Short value1, Short value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Short value1, Short value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andCreatedateIsNull() {
            addCriterion("createDate is null");
            return (Criteria) this;
        }

        public Criteria andCreatedateIsNotNull() {
            addCriterion("createDate is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedateEqualTo(Date value) {
            addCriterion("createDate =", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotEqualTo(Date value) {
            addCriterion("createDate <>", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateGreaterThan(Date value) {
            addCriterion("createDate >", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateGreaterThanOrEqualTo(Date value) {
            addCriterion("createDate >=", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateLessThan(Date value) {
            addCriterion("createDate <", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateLessThanOrEqualTo(Date value) {
            addCriterion("createDate <=", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateIn(List<Date> values) {
            addCriterion("createDate in", values, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotIn(List<Date> values) {
            addCriterion("createDate not in", values, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateBetween(Date value1, Date value2) {
            addCriterion("createDate between", value1, value2, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotBetween(Date value1, Date value2) {
            addCriterion("createDate not between", value1, value2, "createdate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}